Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

361
Vistas
What's the difference between a top level module and a sub-module in Django when using - "python manage.py startapp polls"

I followed the polls tutorial for Django and am beginning my own hobby project today. When creating an app, the following really confused me -

Your apps can live anywhere on your Python path. In this tutorial, we’ll create our poll app in the same directory as your manage.py file so that it can be imported as its own top-level module, rather than a submodule of mysite.

So my question is - What is the difference between a top-level module vs a submodule for my project?

And how do I decide which one to choose?

Any help will be greatly appreciated as I am a noob coder working on my first hobby project lol.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

There's no real other difference than matters of taste, organization, and naming.

For what it's worth, with my 10+ years of Django, I still generally like to just have the app packages parallel to the project package (i.e. what that passage suggests).

(It's occasionally also handy to make the project package an app, for some very core models such as custom users, etc.)

There are cases when it does make sense to have packages of interrelated apps, but those are generally for reusable apps such as allauth etc.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda